<?php
include("./include/config.inc.php");
include("./class.php");
$q = strtolower($_GET["q"]);
if (!$q) return;
$selParty = "SELECT incomingId, challan FROM incoming WHERE challan REGEXP '^$q'";
$selPartyRes = mysql_query($selParty);
while($pRow = mysql_fetch_array($selPartyRes)) 
{
	echo $pRow['challan'].'|'.$pRow['incomingId'].'|'.$pRow['challan']."\n";
}
?>